<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateActivities extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('activities', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('活动名称');
            $table->integer('cityid')->comment('城市id');
            $table->string('usertype', 64)->comment('用户类型');
            $table->string('throwposition', 32)->comment('投放位置');
            $table->string('redenvelopetype', 32)->comment('红包类型，分享/领取');
            $table->date('starttime')->comment('活动开始时间');
            $table->date('endtime')->comment('活动结束时间');
            $table->tinyInteger('status')->default(0)->comment('状态');
            $table->integer('adminid')->default(0)->comment('操作人id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
